<%@taglib prefix="s" uri="/struts-tags"	%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<article>	
	<h3><s:text name="reg.title"/></h3>
	
	<s:if test="hasActionMessages()">
		<s:actionmessage />
	</s:if>
	<s:if test="hasActionErrors()">
		<s:actionerror />
	</s:if>
	
	<s:form action="register" namespace="/users" method="post">
		<s:textfield name="userReg.username" key="general.username" />
		<s:password name="userReg.password" key="general.password" />
		<s:password name="confirmPwdReg" key="general.confirmPassword" />
		<s:hidden name="page" value="%{page}" />
		<s:submit method="register" key="general.register" onclick="return confirm('Confirm?')" />
	</s:form>
</article>